package com.zlict.admin.service.impl;

import com.zlict.admin.domain.BaseArea;
import com.zlict.admin.mapper.BaseAreaMapper;
import com.zlict.admin.service.BaseAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BaseAreaServiceImpl implements BaseAreaService {

    @Autowired
    BaseAreaMapper baseAreaMapper;


    @Override
    public List<BaseArea> selectProvinceList() {
        return baseAreaMapper.selectProvinceList();
    }

    @Override
    public List<BaseArea> selectCityAndAreaByPid(Integer provinceId) {
        return baseAreaMapper.selectCityAndAreaByPid(provinceId);
    }
}
